function wxready(signPackage={},jsApiList=[]){
    wx.config({
        debug: false,
        appId: signPackage.appId,
        timestamp: signPackage.timestamp,
        nonceStr: signPackage.nonceStr,
        signature: signPackage.signature,
        jsApiList: jsApiList,
    })
    wx.ready(function () {
        wx.checkJsApi({
            jsApiList: jsApiList,
            success: function (res) {
                if (res.checkResult.getLocation == false) {
                    layer.msg('你的微信版本太低，不支持微信JS接口，请升级到最新的微信版本！');
                    return false;
                }
            }
        });
    })
}
function is_weixn(){
    var ua = navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i)=="micromessenger") {
        return true;
    } else {
        return false;
    }
}
